﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using DAL;

namespace BUS
{
    public class BUS_KhachHang
    {
        public DataTable showkhachhang()
        {
            DAL_KhachHang dao = new DAL_KhachHang();
            return dao.showkhachhang();
        }
        public void insertkhachhang(string mkh, string tkh, string dc, string sdt)
        {
            DAL_KhachHang dao = new DAL_KhachHang();
            dao.insertkhachhang(mkh, tkh, dc, sdt);
        }

        public void Updatekhachhang(string mkh1, string mkh, string tkh, string dc, string sdt)
        {
            DAL_KhachHang daoKH = new DAL_KhachHang();
            daoKH.Updatekhachhang(mkh1, mkh, tkh, dc, sdt);
        }
        public void Deletekhachhang(string mkh_d)
        {
            DAL_KhachHang daoKH = new DAL_KhachHang();
            daoKH.Deletekhachhang(mkh_d);
        }
    }
}
